home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 16 / AMIGAplus Sonderheft 16 (1998)(ICP)(DE)[!].iso / pd / anwendungen / rtgmaster_dev / demos / mandel / mandelppc.doc < prev    next >
Text File  |  1998-06-29  |  2KB  |  67 lines

  1. To install vbcc-WarpOS and compile the PPC Version:
  2.  
  3. - set up the following directory structure:
  4.  
  5. vbcc (Dir)          <---- assign vbcc: to this directory !!!
  6.   machines (Dir)
  7.     amigawos (Dir)
  8.       include (Dir) <---- assign vincludewos: to this directory !!!
  9.       lib (Dir)     <---- assign vlibwos: to this directory
  10.  
  11. - copy standard OS Includes (from SAS/C or StormC or GNU C or ...) to
  12.   vincludewos:
  13.  
  14. - now depack the vbcc.lha to vbcc:, in the process overwriting some
  15.   of the standard includes
  16.  
  17. - install rtgmsater includes (the rtgm.lib belongs to vlibwos:). There
  18.   probably are already rtgmaster includes coming with your vbcc-WarpOS,
  19.   but the ones from this archive rtgmaster_dev.lha are later versions,
  20.   probably. So overwrite the old ones.
  21.  
  22. - i recommend adding -+ to the vbcc:warpos and changing the pasm settings
  23.   with an additional -O65536 (when big switch-case-loops are coming, this
  24.   is good..), so that the file now looks like:
  25.  
  26. -no-preprocessor
  27. -poweropen
  28. -sc
  29. -+
  30. -no-multiple-ccs
  31. -use-lmw
  32. -peephole
  33. -cc=vbccppc -quiet %s -o= %s %s -O=%ld
  34. -ccv=vbccppc %s -o= %s %s -O=%ld
  35. -pp=vcpp -Ivincludewos: -D__STDC__=1 -D__PPC__=1 %s %s %s
  36. -ppv=vcpp -Ivincludewos: -D__STDC__=1 -D__PPC__=1 %s %s %s
  37. -as=pasm -F2 %s -O65536 -o %s
  38. -asv=pasm -F2 %s -O65536 -o %s
  39. -rm=delete quiet %s
  40. -rmv=delete %s
  41. -ld=vlink -s -x -nostdlib -Lvlibwos: vlibwos:warpup.o %s %s -lvc vlibwos:x.o -o %s
  42. -l2=vlink -s -x %s %s -o %s
  43. -ldv=vlink -s -x -M -nostdlib -Lvlibwos: vlibwos:warpup.o %s %s -lvc vlibwos:x.o -o %s
  44. -l2v=vlink -s -x -M %s %s -o %s
  45. -ul=-l%s
  46. -cf=-F%s
  47. -ml=500
  48.  
  49. - to compile the mandelppc:
  50.  
  51.   vc +warpos -amiga-align -lm -lamiga -lrtgm mandelppc.c
  52.  
  53. - now you can start your first self-compiled PPC-program. Compare it with the
  54.   68k version. PPC is FAST !!! :) (okay, the 68k version is not best optimized,
  55.   but even if the WriteRtgPixel are exchanged for CopyRtgBlit, there is still
  56.   a HUGE speed-difference).
  57.  
  58. If the result of your compile crashes:
  59.  
  60. - You might have an old version of vbcc-WarpOS. One of the first versions did
  61.   not handle functions with many register-parameters (PPCCopyRtgBlit) correct.
  62. - If you use Doublebuffering, be sure to have rtg_Buffers,2 present. The PPC
  63.   does not like, if you access memory not owned by it.
  64.  
  65.  
  66.  
  67.